﻿@model HdipCricketClub.Models.Club

@{
    ViewBag.Title = "Create";
}

<h2>Create Club:</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Club Details</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.name)
            @Html.ValidationMessageFor(model => model.name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.address_1)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.address_1)
            @Html.ValidationMessageFor(model => model.address_1)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.address_2)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.address_2)
            @Html.ValidationMessageFor(model => model.address_2)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.town_city)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.town_city)
            @Html.ValidationMessageFor(model => model.town_city)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.county, "County:")
        </div>
        <div class="editor-field">
            @Html.DropDownList("county",string.Empty)
            @Html.ValidationMessageFor(model => model.county)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.phone)
            @Html.ValidationMessageFor(model => model.phone)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.email)
            @Html.ValidationMessageFor(model => model.email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.president, "President:")
        </div>
        <div class="editor-field">
            @Html.DropDownList("president", String.Empty)
            @Html.ValidationMessageFor(model => model.president)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.chairman, "Chairman:")
        </div>
        <div class="editor-field">
            @Html.DropDownList("chairman", String.Empty)
            @Html.ValidationMessageFor(model => model.chairman)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.secretary, "Secretary:")
        </div>
        <div class="editor-field">
            @Html.DropDownList("secretary", String.Empty)
            @Html.ValidationMessageFor(model => model.secretary)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.fixtures_secretary, "Fixtures Secretary:")
        </div>
        <div class="editor-field">
            @Html.DropDownList("fixtures_secretary", String.Empty)
            @Html.ValidationMessageFor(model => model.fixtures_secretary)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
